<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>军令状</title>
    <style>
        *{margin:0px;padding:0px;}
        img{max-width: 100%;}
    </style>
</head>
<body>
    <div id="wrap">
        <img src="data/base.png" alt="">
    </div>

    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script>
        setInterval(function(){
            $.get('find.php', function(data) {
                if (data.code == 200) {
                    $('#wrap img').attr('src', data.url);
                }
            });
        }, 1000);
    </script>
</body>
</html>